const { defineConfig } = require('@vue/cli-service')

let proxyObj={}
proxyObj['/']={
  //websocket
  ws:false,
  //目标地址
  // target: 'http://175.6.69.165:28012',
  target: 'http://127.0.0.1:9090/',
  //发送请求头host会被设置为target
  changeOrigin:true,
  //不重写请求地址
  pathReWrite:{
    '^/':'/'
  }
}
module.exports = defineConfig({
  publicPath:'./',
  transpileDependencies: true,
  lintOnSave: false,
  devServer:{  //本地开发
    // host:'134.68.9.58', //无意义
    // port: 28883,  //无意义
    host:'127.0.0.1', //本地开发需要
    port:8080,//本地开发需要
    proxy:proxyObj//本地开发需要
  }
})
